package com.slkj.mapper;


import com.slkj.entity.City;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface CityMapper {

    @Insert("INSERT INTO city(title,need,username,user_type) VALUES(#{title},#{need},#{username},#{userType})")
    @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
    public int insert(City city);

}
